/*
 * @description:
 * @author: <a href="mailto:joshualwork@163.com">joshua_liu</a>
 * @Date: 2024-03-09 04:54:22
 * @FilePath: \dynamic-conf\loader\props.go
 * @LastEditTime: 2024-03-26 22:57:34
 * @LastEditors: <a href="mailto:joshualwork@163.com">joshua_liu</a>
 */
package loader

type ExtraProps struct {
	Group         string `json:"group"`
	DataId        string `json:"data-id"`
	ToPath        string `json:"to-path"`
	Callback      string `json:"callback"`
	Authorization string `json:"authorization"`
}

func NewFullConstractExtraProps(group string, dataId string, toPath string,
	callback string, authorization string) *ExtraProps {
	return &ExtraProps{Group: group, DataId: dataId, ToPath: toPath,
		Callback: callback, Authorization: authorization}
}

func NewSimpleProps(group string, dataId string, toPath string) *ExtraProps {
	return &ExtraProps{Group: group, DataId: dataId, ToPath: toPath}
}
